<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>在线课堂</title>
    <script>
        ; (function (designWidth, maxWidth) {
            var doc = document,
                win = window,
                docEl = doc.documentElement,
                remStyle = document.createElement("style"),
                tid;

            function refreshRem() {
                var width = docEl.getBoundingClientRect().width;
                maxWidth = maxWidth || 540;
                width > maxWidth && (width = maxWidth);
                var rem = width * 100 / designWidth;
                remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
            }

            if (docEl.firstElementChild) {
                docEl.firstElementChild.appendChild(remStyle);
            } else {
                var wrap = doc.createElement("div");
                wrap.appendChild(remStyle);
                doc.write(wrap.innerHTML);
                wrap = null;
            }
            //要等 wiewport 设置好后才能执行 refreshRem，不然 refreshRem 会执行2次；
            refreshRem();

            win.addEventListener("resize", function () {
                clearTimeout(tid); //防止执行两次
                tid = setTimeout(refreshRem, 300);
            }, false);

            win.addEventListener("pageshow", function (e) {
                if (e.persisted) { // 浏览器后退的时候重新计算
                    clearTimeout(tid);
                    tid = setTimeout(refreshRem, 300);
                }
            }, false);

            if (doc.readyState === "complete") {
                doc.body.style.fontSize = "14px";
            } else {
                doc.addEventListener("DOMContentLoaded", function (e) {
                    doc.body.style.fontSize = "14px";
                }, false);
            }
        })(828 , 828);
    </script>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/ketang.css">
    <link rel="stylesheet" href="./css/common.css">
</head>
<body>
    <div class="header flex align-center justify-between">
        <div class="flex align-center">
            <img src="./imgs/logo.png" class="logo" alt="">
            <span>水利造价信息网</span>
        </div>
        <img src="./imgs/fenlei.png" class="fenlei" alt="">
    </div>
    <div class="sub-header flex justify-between align-center">
        <span>水利水电造价软件培训</span>
        <span class="color-blue toggle">切换</span>
    </div>
    <div class="search">
        <img src="./imgs/sousuo.png" alt="">
        <input type="text" placeholder="搜索">
    </div>
    <div class="works">
        <div class="work flex">
            <img src="./imgs/kec.png" class="left-part" alt="">
            <div class="right-part">
                <div class="right-part-top">
                    <div class="hide-more1">
                        <span>课程名称:</span>
                        <span>《建设工程技术与计量(水利工程)》</span>
                    </div>
                    <div>
                        <span>主讲老师:</span>
                        <span>吕桂军</span>
                    </div>
                    <div>
                        <span>课程时长:</span>
                        <span>约21个小时</span>
                    </div>
                    <div>
                        <span>课程费用:</span>
                        <span>198.00元</span>
                    </div>
                    <div class="hide-more1">
                        <span>课程内容:</span>
                        <span>水利水电工程管理与务实(精讲课程)</span>
                    </div>
                </div>
                <div class="right-part-bottom">了解详情</div>
            </div>
        </div>
        <div class="work flex">
            <img src="./imgs/kec.png" class="left-part" alt="">
            <div class="right-part">
                <div class="right-part-top">
                    <div class="hide-more1">
                        <span>课程名称:</span>
                        <span>《建设工程技术与计量(水利工程)》</span>
                    </div>
                    <div>
                        <span>主讲老师:</span>
                        <span>吕桂军</span>
                    </div>
                    <div>
                        <span>课程时长:</span>
                        <span>约21个小时</span>
                    </div>
                    <div>
                        <span>课程费用:</span>
                        <span>198.00元</span>
                    </div>
                    <div class="hide-more1">
                        <span>课程内容:</span>
                        <span>水利水电工程管理与务实(精讲课程)</span>
                    </div>
                </div>
                <div class="right-part-bottom">了解详情</div>
            </div>
        </div>
    </div>
    <div style="height: 1rem;">
        <div class="tabbar flex">
            <div class="tab flex1">
                <img src="./imgs/tabs/shouye.png" alt="">
                <div>首页</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/huiyuan.png" alt="">
                <div>会员注册</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/zixun.png" alt="">
                <div>在线咨询</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/gouwuche.png" alt="">
                <div>资料下载</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/py.png" alt="">
                <div>在线课堂</div>
            </div>
        </div>
    </div>
    <!-- 弹框 -->
    <div class="layer-wrap" id="layer">
        <div class="layer ketang">
            <div class="layer-title">切换课程</div>
            <img src="./imgs/guanbi.png" class="close-icon" alt="">
            <!-- <div class="choose">请选择：</div> -->
            <div class="layer-list">
                <div class="layer-item flex justify-between align-center">
                    <div class="flex align-center">
                        <img src="./imgs/yonghu.png" alt="">
                        <span class="name">水利水电造价软件应用培训</span>
                    </div>
                    <img src="./imgs/day.png" class="link" alt="">
                </div>
                <div class="layer-item flex justify-between align-center">
                    <div class="flex align-center">
                        <img src="./imgs/yonghu.png" alt="">
                        <span class="name">水利水电造价预算文件编制</span>
                    </div>
                    <img src="./imgs/day.png" class="link" alt="">
                </div>
                <div class="layer-item flex justify-between align-center">
                    <div class="flex align-center">
                        <img src="./imgs/yonghu.png" alt="">
                        <span class="name">《套定额租单价》</span>
                    </div>
                    <img src="./imgs/day.png" class="link" alt="">
                </div>
            </div>
        </div>
    </div>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script>
        $(".toggle").on('click', function() {
            $('#layer').show()
        })
        $('.close-icon').on('click', function() {
            $("#layer").hide()
        })
    </script>
</body>
</html>